const survivalResultColumns = [
    {
        name: 'plot',
        label: 'Plot',
        field: '',
        sortable: false,
        enabled: true,
        align: 'center'
    },
    {
        name: 'cancer',
        label: 'Cancer',
        field: 'cancer_type',
        sortable: false,
        enabled: true,
        align: 'center'
    },
    {
        name: 'MNV_id',
        label: 'MNV ID (chr_position_ref,alt_SNV1_SNV2)',
        field: 'MNV_id',
        sortable: false,
        enabled: true,
        align: 'center'
    },
    {
        name: 'model',
        label: 'Model',
        field: 'model',
        sortable: false,
        enabled: true,
        align: 'center'
    },
    // {
    //     name: 'hazard_ratio',
    //     label: 'Hazard ratio',
    //     field: 'hazard_ratio',
    //     format: (val: number) => val.toFixed(3),
    //     sortable: true,
    //     enabled: false,
    //     align: 'center'
    // },
    {
        name: 'log_rank_p',
        label: 'Log rank P',
        field: 'log_rank_p',
        sortable: true,
        format: (val: number) => {
            if (val === 0) {
                return 'p<1e-20'
            } else {
                return val.toExponential(2)
            }
        },
        enabled: true,
        align: 'center'
    },
    {
        name: 'sample_count',
        label: 'Sample',
        field: 'sample_count',
        sortable: false,
        enabled: true,
        align: 'center'
    },
    {
        name: 'median_surv',
        label: 'Median survival',
        field: 'median_surv',
        sortable: false,
        enabled: true,
        align: 'center'
    },
]

export {
    survivalResultColumns
}
